# Copyright (c) 2019 The STE||AR-Group
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

set(allocator_support_headers hpx/allocator_support/allocator_deleter.hpp
                              hpx/allocator_support/internal_allocator.hpp
)

set(allocator_support_compat_headers hpx/util/allocator_deleter.hpp
                                     hpx/util/internal_allocator.hpp
)

set(allocator_support_sources)

include(HPX_AddModule)
add_hpx_module(
  allocator_support
  COMPATIBILITY_HEADERS ON
  DEPRECATION_WARNINGS
  GLOBAL_HEADER_GEN ON
  SOURCES ${allocator_support_sources}
  HEADERS ${allocator_support_headers}
  COMPAT_HEADERS ${allocator_support_compat_headers}
  DEPENDENCIES hpx_config hpx_preprocessor hpx_dependencies_allocator
  CMAKE_SUBDIRS examples tests
)
